import request from '@/utils/request'

export function getSupply() {
  return request({
    url: '/supplys',
    method: 'get'
  })
}

export function createSupply(data) {
  return request({
    url: '/supply',
    method: 'post',
    data: data
  })
}

export function updateSupply(id, data) {
  return request({
    url: '/supply/' + id,
    method: 'patch',
    data: data
  })
}

export function deleteSupply(id) {
  return request({
    url: '/supply/' + id,
    method: 'delete'
  })
}

